package com.fesine.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description: user属性配置类
 * 1、添加@Component注解
 * 2、添加@ConfigurationProperties注解
 * @author: Fesine
 * @createTime:2017/8/29 23:37
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/8/29 23:37
 */
@Component
@ConfigurationProperties(prefix = "user")
public class UserProperties {
    private String name;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
